//
//  MulitpleTableViewCell.m
//  GC_OC
//
//  Created by wlf on 2022/5/15.
//

#import "MulitpleTableViewCell.h"

@implementation MulitpleTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.titleLab = [[UILabel alloc] initWithFrame:CGRectMake(51, 0, 36, 50)];
        self.titleLab.font = [UIFont systemFontOfSize:14];
        self.titleLab.textColor = [UIColor blackColor];
        
        self.subTitleLab = [[UILabel alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 45, 0, 30, 50)];
        self.subTitleLab.font = [UIFont systemFontOfSize:14];
        self.subTitleLab.textColor = [UIColor colorWithHex:@"#BFBFBF"];
        [self.contentView addSubview:self.titleLab];
        [self.contentView addSubview:self.subTitleLab];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    if (selected) {
        self.contentView.backgroundColor = [UIColor colorWithHex:@"#E9F9FF"];
        self.titleLab.textColor = [UIColor colorWithRed:0/255.0 green:145/255.0 blue:255/255.0 alpha:1.0];
        self.subTitleLab.textColor = [UIColor colorWithRed:0/255.0 green:145/255.0 blue:255/255.0 alpha:1.0];
    }else{
        self.contentView.backgroundColor = [UIColor colorWithHex:@"#ffffff"];
        self.titleLab.textColor = [UIColor colorWithHex:@"#000000"];
        self.subTitleLab.textColor = [UIColor colorWithHex:@"#BFBFBF"];
    }
}

@end
